package com.ld.businesscard_manage.service;

import com.ld.businesscard_manage.DAO.BusinessCardDAO;
import com.ld.businesscard_manage.bean.BusinessCard;
import com.ld.businesscard_manage.bean.User;

import java.util.List;

public interface BusinessCardService {
	public int addCard(BusinessCard card);
	public int deleteCardById(Integer id);
	public int updateCard(BusinessCard card);
	public List<BusinessCard> getAllCards();
	//通过姓名模糊查询所有名片
	public List<BusinessCard> getCardsByLike(String name);
	public List<BusinessCard> getValidCards();
	public BusinessCard getCardById(Integer id);
	public int deletedCardById(Integer id);
	public int recoverCard(Integer id);
	public List<BusinessCard> getAllValidCards();
	public List<BusinessCard> getMyCards(String account);
	public List<BusinessCard> getMyValidCards(String account);
	public List<BusinessCard> getMyCardsByLike(String name, String account);
	public int changeCardsByAccount(User user, String account);
	public int deleteUser(String account);
	//导出所有名片信息
	public void exportAllCardsToExcel(List<BusinessCard> cards);
}
